﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="NguoiDung.aspx.cs"
    Inherits="WebRaoVat.NguoiDung" Title="Trang thành viên" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% if (bKiemTra == true)
       {    
    %>
    <div id="box-pro-highlights">
        <div class="box-pro-highlights-header">
            <a href="###" target="_blank" class="no-hover">Trang thành viên</a>
        </div>
        <div class="content" style="text-align: left">
            <div style="text-align: left">
                <p>
                    &nbsp;</p>
                <div>
                    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                    </asp:ToolkitScriptManager>
                    <asp:Panel ID="PanelCapNhatMatKhau1" runat="server" Font-Size="Larger" ForeColor="Red">
                        <asp:Image ID="Image2" runat="server" />
                        Cập nhật mật khẩu
                        <asp:Label ID="Label2" runat="server"></asp:Label>
                    </asp:Panel>
                    <div style="height: 5px">
                        &nbsp;
                    </div>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender2" runat="server" Collapsed="True"
                                TargetControlID="PanelCapNhatMatKhau2" CollapseControlID="PanelCapNhatMatKhau1"
                                CollapsedImage="images/Expand.png" CollapsedText="(Mở ra)" ExpandControlID="PanelCapNhatMatKhau1"
                                ExpandedImage="images/collape.png" ExpandedText="(Đóng lại)" ImageControlID="Image2"
                                TextLabelID="Label2">
                            </asp:CollapsiblePanelExtender>
                            <asp:Panel ID="PanelCapNhatMatKhau2" runat="server">
                                <table style="border: thin solid #0066cc; border-collapse: collapse; width: 100%;
                                    background-color: white" align="center">
                                    <tr>
                                        <td style="width: 50%; text-align: right">
                                            Mật khẩu hiện tại
                                        </td>
                                        <td style="width: 1%">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMatKhauHienTai" runat="server" BorderStyle="Solid" Width="163px"
                                                TextMode="Password"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">
                                            Mật khẩu mới
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMatKhauMoi" runat="server" BorderStyle="Solid" Width="163px"
                                                TextMode="Password"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">
                                            Nhập lại mật khẩu mới
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMatKhauNhapLai" runat="server" BorderStyle="Solid" Width="163px"
                                                TextMode="Password"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <% for (int i = 0; i < ErrorMessage.Count; ++i)
                                               {                                                                  
                                            %>
                                            <div style="color: Red; text-align: center; font-size: smaller">
                                                <%= ErrorMessage[i] %>
                                            </div>
                                            <% } %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" align="center">
                                            <asp:Button ID="btnLuu" runat="server" Text="Lưu" OnClick="btnLuu_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <p>
                        &nbsp;</p>
                    <asp:Panel ID="PanelQuanLyThongTin1" runat="server" Font-Size="Larger" ForeColor="Red">
                        <asp:Image ID="Image3" runat="server" />
                        Cập nhật thông tin liên quan
                        <asp:Label ID="Label3" runat="server"></asp:Label>
                    </asp:Panel>
                    <div style="height: 5px">
                        &nbsp;
                    </div>
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate>
                            <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender3" runat="server" Collapsed="True"
                                TargetControlID="PanelQuanLyThongTin2" CollapseControlID="PanelQuanLyThongTin1"
                                CollapsedImage="images/Expand.png" CollapsedText="(Mở ra)" ExpandControlID="PanelQuanLyThongTin1"
                                ExpandedImage="images/collape.png" ExpandedText="(Đóng lại)" ImageControlID="Image3"
                                TextLabelID="Label3">
                            </asp:CollapsiblePanelExtender>
                            <asp:Panel ID="PanelQuanLyThongTin2" runat="server">
                                <table style="border: thin solid #0066cc; border-collapse: collapse; width: 100%;
                                    background-color: white" align="center">
                                    <tr>
                                        <td style="width: 50%; text-align: right">
                                            Tên đăng nhập
                                        </td>
                                        <td style="width: 1%">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtUsernameCapNhat" runat="server" BorderStyle="Solid" Width="163px"
                                                ReadOnly="True"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">
                                            Email
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtEmailCapNhat" runat="server" BorderStyle="Solid" Width="163px"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmailCapNhat"
                                                ErrorMessage="* Email không hợp lệ" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">
                                            Địa chỉ
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtDiaChi" runat="server" BorderStyle="Solid" Width="163px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">
                                            Điện thoại
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtDienThoai" runat="server" BorderStyle="Solid" Width="163px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" align="center">
                                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Size="Smaller" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <% for (int i = 0; i < ListMessageUpdate.Count; ++i)
                                               {                                                                  
                                            %>
                                            <div style="color: Red; text-align: center; font-size: smaller">
                                                <%= ListMessageUpdate[i] %>
                                            </div>
                                            <% }                                                                                                                       
                                            %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" align="center">
                                            <asp:Button ID="btnCapNhat" runat="server" Text="Cập nhật" OnClick="btnCapNhat_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <p>
                        &nbsp;
                    </p>
                    <asp:Panel ID="pnQuanLyTinNhan1" runat="server" Font-Size="Larger" ForeColor="Red">
                        <asp:Image ID="imgQuanLyTinNhan" runat="server" />
                        Quản lý tin nhắn
                        <asp:Label ID="lbQuanLyTinNhan" runat="server"></asp:Label>
                    </asp:Panel>
                    <div style="height: 10px">
                        &nbsp;
                    </div>
                    <asp:UpdatePanel ID="UpdatePanelQuanLyTinNhan" runat="server">
                        <ContentTemplate>
                            <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtenderQuanLyTinNhan" runat="server"
                                Collapsed="True" TargetControlID="pnQuanLyTinNhan2" CollapseControlID="pnQuanLyTinNhan1"
                                CollapsedImage="images/Expand.png" CollapsedText="(Mở ra)" ExpandControlID="pnQuanLyTinNhan1"
                                ExpandedImage="images/collape.png" ExpandedText="(Đóng lại)" ImageControlID="imgQuanLyTinNhan"
                                TextLabelID="lbQuanLyTinNhan">
                            </asp:CollapsiblePanelExtender>
                            <asp:Panel ID="pnQuanLyTinNhan2" runat="server">
                                <table style="border: medium solid #FF0000; border-collapse: collapse; width: 100%;
                                    background-color: white" align="center">
                                    <tr>
                                        <td style="background-color: #CCCCCC">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%; text-align: center; background-color: #CCCCCC;">
                                            <asp:Panel ID="pnNhanTin1" runat="server" Font-Size="Medium" ForeColor="Blue">
                                                <asp:Image ID="imgNhanTin" runat="server" />
                                                Nhắn tin
                                                <asp:Label ID="lbNhanTin" runat="server"></asp:Label>
                                            </asp:Panel>
                                            <div style="height: 5px">
                                                &nbsp;
                                            </div>
                                            <asp:UpdatePanel ID="UpdatePanelNhanTin" runat="server">
                                                <ContentTemplate>
                                                    <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtenderNhanTin" runat="server"
                                                        Collapsed="True" TargetControlID="pnNhanTin2" CollapseControlID="pnNhanTin1"
                                                        CollapsedImage="images/Expand.png" CollapsedText="(Mở ra)" ExpandControlID="pnNhanTin1"
                                                        ExpandedImage="images/collape.png" ExpandedText="(Đóng lại)" ImageControlID="imgNhanTin"
                                                        TextLabelID="lbNhanTin">
                                                    </asp:CollapsiblePanelExtender>
                                                    <asp:Panel ID="pnNhanTin2" runat="server">
                                                        <div style="text-align: center">
                                                            <table border="0" cellspacing="0" cellpadding="0" width="80%" align="center" style="border: thin solid #0000FF;
                                                                margin-left: 65px">
                                                                <tr>
                                                                    <td colspan="4">
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 10%">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td style="width: 30%; text-align: right">
                                                                        Người nhận:&nbsp;
                                                                    </td>
                                                                    <td style="width: 30%; text-align: left">
                                                                        <asp:TextBox ID="txtNguoiNhan" runat="server" BorderStyle="Solid" Width="200px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                    <td style="text-align: right">
                                                                        Tiêu đề:&nbsp;
                                                                    </td>
                                                                    <td style="text-align: left">
                                                                        <asp:TextBox ID="txtTieuDe" runat="server" BorderStyle="Solid" Width="200px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                    <td style="text-align: right">
                                                                        Nội dung:&nbsp;
                                                                    </td>
                                                                    <td style="text-align: left">
                                                                        <asp:TextBox ID="txtNoiDung" runat="server" BorderStyle="Solid" TextMode="MultiLine"
                                                                            Width="200px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="4">
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="4">
                                                                        <asp:Button ID="btnGoi" runat="server" Text="Gởi" OnClick="btnGoi_Click" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="4">
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <% if (ListMessageNhanTin.Count > 0)
                                                                   {
                                                                       for (int iNhanTin = 0; iNhanTin < ListMessageNhanTin.Count; ++iNhanTin)
                                                                       {                                                                
                                                                %>
                                                                <tr>
                                                                    <td colspan="4">
                                                                        <div style="font-size: smaller; color: Red">
                                                                            <%= ListMessageNhanTin[iNhanTin] %>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <% } %>
                                                                <tr>
                                                                    <td colspan="4">
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <% } %>
                                                            </table>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="background-color: #CCCCCC">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="background-color: #CCCCCC">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%; text-align: center; background-color: #CCCCCC;">
                                            <asp:Panel ID="pnXemTinNhan1" runat="server" Font-Size="Medium" ForeColor="Blue">
                                                <asp:Image ID="imgXemTinNhan" runat="server" />
                                                Xem tin nhắn
                                                <asp:Label ID="lbXemTinNhan" runat="server"></asp:Label>
                                            </asp:Panel>
                                            <div style="height: 5px">
                                                &nbsp;
                                            </div>
                                            <asp:UpdatePanel ID="UpdatePanelXemTinNhan" runat="server">
                                                <ContentTemplate>
                                                    <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtenderXemTinNhan" runat="server"
                                                        Collapsed="False" TargetControlID="pnXemTinNhan2" CollapseControlID="pnXemTinNhan1"
                                                        CollapsedImage="images/Expand.png" CollapsedText="(Mở ra)" ExpandControlID="pnXemTinNhan1"
                                                        ExpandedImage="images/collape.png" ExpandedText="(Đóng lại)" ImageControlID="imgXemTinNhan"
                                                        TextLabelID="lbXemTinNhan">
                                                    </asp:CollapsiblePanelExtender>
                                                    <asp:Panel ID="pnXemTinNhan2" runat="server">
                                                        <div>
                                                            <% if (DSTinNhan.Count <= 0)
                                                               {                                                            
                                                            %>
                                                            <br />
                                                            <p style="font-size: larger; color: Red">
                                                                Bạn không có tin nhắn nào !</p>
                                                            <br />
                                                            <% }
                                                               else
                                                               {                                                                                                                                     
                                                            %>
                                                            <table border="0" cellspacing="0" cellpadding="0" width="95%" align="center" style="border: thin solid #0000FF;
                                                                margin-left: 18px">
                                                                <tr>
                                                                    <td colspan="3" style="text-align: center; vertical-align: middle">
                                                                        <br />
                                                                        Tổng số tin:&nbsp;<%= (DSTinNhan.Count).ToString() %>
                                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tin chưa đọc:&nbsp;<%= SoTinChuaDoc.ToString() %>
                                                                        <br />
                                                                        <br />
                                                                    </td>
                                                                </tr>
                                                                <%
                                                                    for (int iXemTinNhan = 0; iXemTinNhan < DSTinNhan.Count; ++iXemTinNhan)
                                                                    { 
                                                                %>
                                                                <tr style="background-color: #999999">
                                                                    <td style="border: thin solid #0066cc; width: 35%; text-align: center; font-size: small">
                                                                        Người gởi:&nbsp <a href="NguoiDung.aspx?MaNguoiDung=<%= DSTinNhan[iXemTinNhan].MaNguoiDung %>">
                                                                            <%= LayTenNguoiGoiTin(DSTinNhan[iXemTinNhan].MaTinNhan) %></a>
                                                                        <br />
                                                                        Thời gian gởi:&nbsp;<%= DSTinNhan[iXemTinNhan].ThoiGianNhanTin.ToShortDateString() %>
                                                                    </td>
                                                                    <% if (DSTinNhan[iXemTinNhan].Readed == 0)
                                                                       {                                                                    
                                                                    %>
                                                                    <td style="width: 55%; border: thin solid #0066cc; text-align: center; font-size: larger;
                                                                        color: Red">
                                                                        <b>
                                                                            <%= DSTinNhan[iXemTinNhan].TieuDeTinNhan %></b>
                                                                    </td>
                                                                    <% }
                                                                       else
                                                                       { %>
                                                                    <td style="width: 55%; border: thin solid #0066cc; text-align: center; font-size: medium;
                                                                        color: Black">
                                                                        <%= DSTinNhan[iXemTinNhan].TieuDeTinNhan %>
                                                                    </td>
                                                                    <% } %>
                                                                    <td style="border: thin solid #0066cc; text-align: center;">
                                                                        <a href="ChiTietTinNhan.aspx?MaCTTinNhan=<%= DSTinNhan[iXemTinNhan].MaTinNhan %>">Xem</a>
                                                                    </td>
                                                                </tr>
                                                                <% } %>
                                                            </table>
                                                            <% } %>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="background-color: #CCCCCC">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <p>
                        &nbsp;
                    </p>
                    <asp:Panel ID="PanelTinRaoVat" runat="server" Font-Size="Larger" ForeColor="Red">
                        <asp:Image ID="Image4" runat="server" />
                        Tin rao vặt của tôi
                        <asp:Label ID="Label4" runat="server"></asp:Label>
                    </asp:Panel>
                    <div style="height: 10px">
                        &nbsp;
                    </div>
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender4" runat="server" Collapsed="True"
                                TargetControlID="PanelTinRaoVat2" CollapseControlID="PanelTinRaoVat" CollapsedImage="images/Expand.png"
                                CollapsedText="(Mở ra)" ExpandControlID="PanelTinRaoVat" ExpandedImage="images/collape.png"
                                ExpandedText="(Đóng lại)" ImageControlID="Image4" TextLabelID="Label4">
                            </asp:CollapsiblePanelExtender>
                            <asp:Panel ID="PanelTinRaoVat2" runat="server">
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
                                    AllowPaging="True" CellPadding="4" DataKeyNames="MaTinRaoVat" GridLines="None"
                                    ForeColor="#333333" OnRowEditing="GridView1_RowEditing" OnRowDeleting="GridView1_RowDeleting"
                                    OnSelectedIndexChanging="GridView1_SelectedIndexChanging">
                                    <RowStyle BackColor="#EFF3FB" />
                                    <Columns>
                                        <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" ShowInsertButton="true"
                                            CancelText="Hủy" DeleteText="Xóa" UpdateText="Sửa" EditText="Sửa" NewText=""
                                            ShowSelectButton="True" InsertText="" SelectText="Up" />
                                        <asp:TemplateField HeaderText="TenTinRaoVat" SortExpression="TenTinRaoVat">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("TenTinRaoVat") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                            <HeaderTemplate>
                                                Tên tin rao vặt
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("TenTinRaoVat") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="ThoiGianDang" SortExpression="ThoiGianDang">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ThoiGianDang") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                            <HeaderTemplate>
                                                Thời gian đăng
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("ThoiGianDang") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="MaTinRaoVat" HeaderText="MaTinRaoVat" SortExpression="MaTinRaoVat"
                                            Visible="false" />
                                    </Columns>
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <EditRowStyle BackColor="#2461BF" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:RAOVATConnectionString %>"
                                    SelectCommand="SELECT [MaTinRaoVat],[TenTinRaoVat], [ThoiGianDang] FROM [TINRAOVAT] WHERE ([MaNguoiDung] = @MaNguoiDung AND [Deleted]=0)">
                                    <SelectParameters>
                                        <asp:SessionParameter DefaultValue="6" Name="MaNguoiDung" SessionField="manguoidung"
                                            Type="Int32" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                                <br />
                                <br />
                                <br />
                            </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <% if (NguoiDungDuocHien.MaLoaiNguoiDung != 2)
                       {                    
                    %>
                    <p>
                        &nbsp;
                    </p>
                    <asp:Panel ID="pnNangCapTK1" runat="server" Font-Size="Larger" ForeColor="Red">
                        <asp:Image ID="imgNangCapTK" runat="server" />
                        Nâng cấp tài khoản lên VIP
                        <asp:Label ID="lbNangCapTK" runat="server"></asp:Label>
                    </asp:Panel>
                    <div style="height: 10px">
                        &nbsp;
                    </div>
                    <asp:UpdatePanel ID="UpdatePanelNangCapTK" runat="server">
                        <ContentTemplate>
                            <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtenderNangCapTK" runat="server"
                                Collapsed="True" TargetControlID="pnNangCapTK2" CollapseControlID="pnNangCapTK1"
                                CollapsedImage="images/Expand.png" CollapsedText="(Mở ra)" ExpandControlID="pnNangCapTK1"
                                ExpandedImage="images/collape.png" ExpandedText="(Đóng lại)" ImageControlID="imgNangCapTK"
                                TextLabelID="lbNangCapTK">
                            </asp:CollapsiblePanelExtender>
                            <asp:Panel ID="pnNangCapTK2" runat="server">
                                <table style="border: thin solid #0066cc; border-collapse: collapse; width: 100%;
                                    background-color: white" align="center">
                                    <tr>
                                        <td style="width: 50%; text-align: right">
                                            Mã tài khoản ngân hàng: 
                                        </td>
                                        <td style="width: 1%">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMaTKNganHang" runat="server" BorderStyle="Solid" 
                                                Width="163px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">
                                            Mật khẩu tài khoản: 
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMatKhauTaiKhoan" runat="server" BorderStyle="Solid" Width="163px" TextMode="Password"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" align="center">
                                            <asp:Button ID="btnChapNhan" runat="server" Text="Chấp nhận" 
                                                onclick="btnChapNhan_Click" />
                                        </td>
                                    </tr>
                                    <% if (ListMessageThongBao.Count > 0)
                                       {
                                           for (int iNhanTin = 0; iNhanTin < ListMessageThongBao.Count; ++iNhanTin)
                                           {                                                                
                                    %>
                                    <tr>
                                        <td colspan="3">
                                            <div style="font-size: smaller; color: Red">
                                                <%= ListMessageThongBao[iNhanTin] %>
                                            </div>
                                        </td>
                                    </tr>
                                    <% } %>
                                    <tr>
                                        <td colspan="3">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <% } %>
                                </table>
                            </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <% } %>
                    <br />
                </div>
            </div>
        </div>
    </div>
    <% }
       else
       {%>
    <div id="box-pro-highlights">
        <div class="box-pro-highlights-header">
            <a href="###" target="_blank" class="no-hover">Thông tin thành viên          <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td style="text-align: right; width: 20%; color: Blue; font-size: 20px">
                        Tên
                    </td>
                    <td style="width: 2%">
                        &nbsp;
                    </td>
                    <td style="text-align: left; color: Red; font-size: 20px">
                        <%= NguoiDungDuocHien.TenNguoiDung %>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right; color: Blue; font-size: 20px">
                        Email
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td style="text-align: left; color: Red; font-size: 20px">
                        <%= NguoiDungDuocHien.Email%>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right; color: Blue; font-size: 20px">
                        Điện thoại
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td style="text-align: left; color: Red; font-size: 20px">
                        <%= NguoiDungDuocHien.DienThoai%>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right; color: Blue; font-size: 20px">
                        Địa chỉ
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td style="text-align: left; color: Red; font-size: 20px">
                        <%= NguoiDungDuocHien.DiaChi%>
                    </td>
                </tr>
            </table>
            <br />
            <br />
            <div>
                <p style="text-align: center">
                    <asp:Button ID="btnNhanTin" runat="server" Text="Nhắn tin" ForeColor="#0000CC" />
                </p>
            </div>
        </div>
    </div>
    <% } %>
</a>
</asp:Content>
